package com.ruoyi.oto.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.oto.domain.DemandsDepart;
import com.ruoyi.oto.domain.DemandsRecord;
import com.ruoyi.oto.domain.dto.DemandsQuryDTO;
import com.ruoyi.oto.domain.vo.DemandsDepartVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * 诉求部门Mapper
 *
 * @author ruoyi
 */
@Mapper
public interface DemandsDepartMapper extends BaseMapper<DemandsDepart>
{

    List<DemandsDepartVO> listDemandsDepartById(@Param("demandId") Long demandId);

    IPage<DemandsDepartVO> listDemandsDepart(@Param("page") IPage<DemandsDepartVO> page, @Param("branchId") Long branchId, @Param("demandsQuryDTO") DemandsQuryDTO demandsQuryDTO);

    List<DemandsDepart> getDemandsDepartByDemandsId(@Param("demandId") Long demandId);
}
